package com.magold.touch;

import org.andengine.entity.scene.Scene;

public interface ISwipeDetector extends IDirectable {
	
	public void setLimits(float pMinTriggerDistance, float pGapRadius);
	public float getMinTriggerDistance();
	public float getGapRadius();
	public void setSwipeListener(ISwipeListener pListener);
	
	public float getStartX();
	public float getStartY();
	public float getCurrentX();
	public float getCurrentY();
	public float getPreviousX();
	public float getPreviousY();
	
	public static interface ISwipeListener extends IDetectorListener {
		public void onSwipeStarted(Scene pScene, ISwipeDetector pDetector);
		public void onSwipe(Scene pScene, ISwipeDetector pDetector);
		public void onSwipeFinished(Scene pScene, ISwipeDetector pDetector, boolean pMultitouchOccured);
	}
}
